package cn.lili.modules.order.order.entity.enums;

import cn.hutool.core.text.CharSequenceUtil;

/**
 * 订单的投诉状态
 *
 * @author paulG
 * @since 2020/12/5
 **/
public enum OrderComplaintStatusEnum {

    /**
     * 新订单，不能申请投诉
     */
    NEW("待审核", "Under Review"),
    /**
     * 未申请
     */
    NO_APPLY("未申请", "No Apply"),
    /**
     * 申请中
     */
    APPLYING("申请中", "Applying"),
    /**
     * 已完成
     */
    COMPLETE("已完成", "Completed"),
    /**
     * 已失效
     */
    EXPIRED("已失效", "Expired"),
    /**
     * 取消
     */
    CANCEL("取消", "Canceled");

    private final String description;
    private final String descriptionEnglish;

    OrderComplaintStatusEnum(String description, String descriptionEnglish)
    {
        this.description = description;
        this.descriptionEnglish = descriptionEnglish;
    }

    public String getDescription() {
        if (CharSequenceUtil.isNotBlank(this.descriptionEnglish)) {
            return this.descriptionEnglish;
        }
        return description;
    }


}
